new Promise((resolve) => {
    console.log('promise');
    resolve(3)
    setTimeout(() => {
        console.log('setTimeout');
    })
    new Promise((resolve) => {
        console.log(4);
        resolve(1)
    }).then(function () {
        console.log(999);
    }).then(function () {
        console.log(998);
    })
    console.log(6);
}).then(function () {
    console.log('then');
}).then(function () {
    console.log('then2');
});

Promise.resolve().then(function () {
    console.log('zuihou');
})

console.log('master');
